cmake_minimum_required(VERSION 3.5.1)
project(line_generation)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
set(CMAKE_BUILD_TYPE Debug)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

find_package( PCL 1.8 REQUIRED ) 
add_definitions(${PCL_DEFINITIONS})
include_directories(${PCL_INCLUDE_DIRS})

find_package(CGAL REQUIRED)
include_directories(${CGAL_INCLUDE_DIRS})

include_directories(
    include
    include/toolkits
    include/toolkits/models/include
    include/toolkits/cloud_viewer
)

link_directories(
    include/toolkits/models 
    include/toolkits/cloud_viewer
)

add_executable(line_generation "${CMAKE_SOURCE_DIR}/src/LineGeneration.cpp")
target_link_libraries(line_generation libModels.so libShowUtils.so CGAL::CGAL ${PCL_LIBRARIES})